<%@ page import="com.ecomm.security.functiontree.FunctionInfo,com.ecomm.util.Function"%>
<%@page contentType="text/html;charset=utf-8"%>
<%@include file="/include/currentuserinfo.jsp" %>
<%
    String functionid=request.getParameter("functionid");
    String functionUrl = Function.toChinese(request.getParameter("functionUrl"));
    
    String fowardUrl = null;
	if (!"".equals(Function.normalizeString(functionUrl)))
	{
		fowardUrl = ctxpath+"/themes/newstyle/frame/right.jsp?functionid="+functionid+"&functionUrl="+functionUrl;
	}
	else
	{
		fowardUrl = ctxpath+"/themes/newstyle/frame/right.jsp?functionid="+functionid;
	}
    
    //System.out.println("-------- in mainframe.jsp-------- functionUrl = "+functionUrl);
    FunctionInfo info=null;
    if(functionid!=null)
    {
        info=sessionmng.getFunctionInfoByID(functionid);
        if(info.getIsleaf()==1)                   //如果是叶子节点

        {
            //此处上下文路径，在配置时添加
            response.sendRedirect(info.getUrl());
        }
    }
%>

<html>
<head>
<title>newstyle风格</title>
<meta content="text/html; charset=utf-8" http-equiv=content-type>
</head>
<frameset rows="*" cols="200,*" framespacing="1" frameborder="yes" border="1" bordercolor="buttonface" name="frmMain" style="border:0px">
  <frame src="<%=ctxpath%>/themes/newstyle/frame/left.jsp?functionid=<%=functionid%>" name="frmleftJSP"  scrolling="no">
  <frame src="<%=fowardUrl%>" name="frmCenter" >
</frameset>
<noframes>
<body bgcolor=ffffff border=0>
您的浏览器不支持iframe方式显示，请把浏览器升级到ie5.0以上。

</body>
</noframes>
</html>
